import request from './requests.js'
import axios from 'axios'
import qs from 'qs'
import {
	select_sku_in_where_location_url
} from "./setting.js"

import {
	Toast
} from 'vant'

import {
	getLocalTime
} from "./date.js"



function select_sku_in_where_location(warehouse_id, sku_id, callBack) {

	request({
		method: 'get',
		url: select_sku_in_where_location_url,
		params:{
			warehouse_id: warehouse_id,
			sku_id: sku_id
		}
	}).then((response) => { //这里使用了ES6的语法
		// console.log(response) //请求成功返回的数据
		let res = response.data.resultBody
		callBack(res)
		
	}).catch((error) => {
		// console.log(response)
		console.log(error) //请求失败返回的数据
		Toast('接口请求失败，请联系管理员！')
	})


}



export default select_sku_in_where_location